<form method="post" action="/sys/group/add" enctype="multipart/form-data" class="pageForm required-validate"
	  onsubmit="return iframeCallback(this, pageRefresh)">
	<input type="hidden" id="upId" name="upId" th:value="${pid}">
	<input type="hidden" id="systemId" name="systemId" th:value="${systemId}">
	<input type="hidden" id="cmd5" name="cmd5" value="">
	<input type="hidden" id="uid" name="uid" value="">
	<input type="hidden" id="randomData" name="randomData" value="">
	<div class="ibox no-margins no-padding no-borders">
		<div class="ibox-title p-xs ljFixBoxTitle">
			<div class="btn btn-sm btn-primary pull-right" id="btnAddSubmit"><i class="fa fa-paste">添加模块</i></div>
		</div>
		<div style="height:40px;"></div>
		<div class="ibox-content">
			<div class="row">
				<div class="form-group col-md-12">
					<label>所属系统(<b class="text-danger">*</b>):</label>
					<input type="text" class="form-control required" th:value="${sysSystem.systemName}" readonly>
				</div>
				<div class="form-group col-md-12">
					<label>所属用户(<b class="text-danger">*</b>):</label>
					<input type="text" class="form-control required" th:value="${nick}" readonly>
				</div>
				<div class="form-group col-md-12">
					<label>父角色信息(<b class="text-danger">*</b>):</label>
					<input type="text" class="form-control required" th:value="${pname}" readonly>
				</div>
				<div class="form-group col-md-12">
					<label>角色名称:</label>
					<input name="groupName" type="text" class="form-control required" maxlength="32">
				</div>
				<div class="form-group col-md-12">
					<label>角色排序(<b class="text-danger">*</b>):</label>
					<input name="groupSort" type="text" class="form-control required digits" maxlength="3">
				</div>
			</div>
		</div>
	</div>
</form>
<script>
    jQuery(function ($) {
        $("#btnAddSubmit").on("click", function () {
            var values = {};
            modifyVerf(values);
            $("#cmd5").val(values.cmd5);
            $("#uid").val(values.uid);
            $("#randomData").val(values.randomData);
            $(this).closest("form").submit();
        });
    });
</script>